Skip to content

Updated to use git SHA for release label on Docker image#706

Merged
naphelps merged 1 commit intoopen-horizon:v2.110from
bencourliss:v2.110
Aug 24, 2023
Merged

Updated to use git SHA for release label on Docker image#706
naphelps merged 1 commit intoopen-horizon:v2.110from
bencourliss:v2.110

Conversation

@bencourliss
Copy link
Member

@bencourliss bencourliss commented Aug 24, 2023

The release label on the Docker image created for Exchange should use the last commit SHA (shortened). This is done by setting the GIT_SHORT_SHA environment variable during the build. If it is missing, the previous functionality of using the version value for this label is used.

The GitHub Action was also re-ordered to checkout the code sooner so we can grab the commit hash at an earlier point in time. A redundant step was also combined into an earlier step. Also added some validation of the environment variables.

@bencourliss bencourliss requested a review from naphelps August 24, 2023 14:24
@naphelps naphelps merged commit 432cf55 into open-horizon:v2.110 Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants